| Edwin Kempin | 2eebd14 | 2013-03-06 15:28:34 +0100 | [diff] [blame] | 1 | Gerrit Code Review - /projects/ REST API |
| 2 | ======================================== |
| Edwin Kempin | d0a6392 | 2013-01-23 16:32:59 +0100 | [diff] [blame] | 3 | |
| 4 | This page describes the project related REST endpoints. |
| 5 | Please also take note of the general information on the |
| 6 | link:rest-api.html[REST API]. |
| 7 | |
| Edwin Kempin | c3fe3cb | 2013-02-13 15:09:23 +0100 | [diff] [blame] | 8 | [[project-endpoints]] |
| 9 | Project Endpoints |
| 10 | ----------------- |
| 11 | |
| Edwin Kempin | 7620274 | 2013-02-15 13:51:50 +0100 | [diff] [blame] | 12 | [[list-projects]] |
| Edwin Kempin | 50d3d9b | 2013-03-06 16:38:26 +0100 | [diff] [blame] | 13 | List Projects |
| 14 | ~~~~~~~~~~~~~ |
| 15 | [verse] |
| 16 | 'GET /projects/' |
| 17 | |
| Edwin Kempin | d0a6392 | 2013-01-23 16:32:59 +0100 | [diff] [blame] | 18 | Lists the projects accessible by the caller. This is the same as |
| 19 | using the link:cmd-ls-projects.html[ls-projects] command over SSH, |
| 20 | and accepts the same options as query parameters. |
| 21 | |
| Edwin Kempin | 51a6dc9 | 2013-02-04 15:43:59 +0100 | [diff] [blame] | 22 | As result a map is returned that maps the project names to |
| 23 | link:#project-info[ProjectInfo] entries. The entries in the map are sorted |
| 24 | by project name. |
| 25 | |
| Edwin Kempin | 3744083 | 2013-02-06 11:36:00 +0100 | [diff] [blame] | 26 | .Request |
| Edwin Kempin | d0a6392 | 2013-01-23 16:32:59 +0100 | [diff] [blame] | 27 | ---- |
| 28 | GET /projects/?d HTTP/1.0 |
| Edwin Kempin | 3744083 | 2013-02-06 11:36:00 +0100 | [diff] [blame] | 29 | ---- |
| Edwin Kempin | d0a6392 | 2013-01-23 16:32:59 +0100 | [diff] [blame] | 30 | |
| Edwin Kempin | 3744083 | 2013-02-06 11:36:00 +0100 | [diff] [blame] | 31 | .Response |
| 32 | ---- |
| Edwin Kempin | d0a6392 | 2013-01-23 16:32:59 +0100 | [diff] [blame] | 33 | HTTP/1.1 200 OK |
| 34 | Content-Disposition: attachment |
| 35 | Content-Type: application/json;charset=UTF-8 |
| 36 | |
| 37 | )]}' |
| 38 | { |
| 39 | "external/bison": { |
| 40 | "kind": "gerritcodereview#project", |
| 41 | "id": "external%2Fbison", |
| 42 | "description": "GNU parser generator" |
| 43 | }, |
| 44 | "external/gcc": { |
| 45 | "kind": "gerritcodereview#project", |
| 46 | "id": "external%2Fgcc", |
| 47 | }, |
| 48 | "external/openssl": { |
| 49 | "kind": "gerritcodereview#project", |
| 50 | "id": "external%2Fopenssl", |
| 51 | "description": "encryption\ncrypto routines" |
| 52 | }, |
| 53 | "test": { |
| 54 | "kind": "gerritcodereview#project", |
| 55 | "id": "test", |
| 56 | "description": "\u003chtml\u003e is escaped" |
| 57 | } |
| 58 | } |
| 59 | ---- |
| 60 | |
| Edwin Kempin | a64c4b9 | 2013-01-23 11:30:40 +0100 | [diff] [blame] | 61 | .Get all projects with their description |
| 62 | **** |
| 63 | get::/projects/?d |
| 64 | **** |
| 65 | |
| Edwin Kempin | d0a6392 | 2013-01-23 16:32:59 +0100 | [diff] [blame] | 66 | [[suggest-projects]] |
| 67 | The `/projects/` URL also accepts a prefix string in the `p` parameter. |
| 68 | This limits the results to those projects that start with the specified |
| 69 | prefix. |
| 70 | List all projects that start with `platform/`: |
| Edwin Kempin | 3744083 | 2013-02-06 11:36:00 +0100 | [diff] [blame] | 71 | |
| 72 | .Request |
| Edwin Kempin | d0a6392 | 2013-01-23 16:32:59 +0100 | [diff] [blame] | 73 | ---- |
| 74 | GET /projects/?p=platform%2F HTTP/1.0 |
| Edwin Kempin | 3744083 | 2013-02-06 11:36:00 +0100 | [diff] [blame] | 75 | ---- |
| Edwin Kempin | d0a6392 | 2013-01-23 16:32:59 +0100 | [diff] [blame] | 76 | |
| Edwin Kempin | 3744083 | 2013-02-06 11:36:00 +0100 | [diff] [blame] | 77 | .Response |
| 78 | ---- |
| Edwin Kempin | d0a6392 | 2013-01-23 16:32:59 +0100 | [diff] [blame] | 79 | HTTP/1.1 200 OK |
| 80 | Content-Disposition: attachment |
| 81 | Content-Type: application/json;charset=UTF-8 |
| 82 | |
| 83 | )]}' |
| 84 | { |
| 85 | "platform/drivers": { |
| 86 | "kind": "gerritcodereview#project", |
| 87 | "id": "platform%2Fdrivers", |
| 88 | }, |
| 89 | "platform/tools": { |
| 90 | "kind": "gerritcodereview#project", |
| 91 | "id": "platform%2Ftools", |
| 92 | } |
| 93 | } |
| 94 | ---- |
| 95 | E.g. this feature can be used by suggestion client UI's to limit results. |
| 96 | |
| Edwin Kempin | 5c544e2 | 2013-03-06 13:35:45 +0100 | [diff] [blame] | 97 | [[get-project]] |
| 98 | Get Project |
| 99 | ~~~~~~~~~~~ |
| 100 | [verse] |
| 101 | 'GET /projects/link:#project-name[\{project-name\}]' |
| 102 | |
| 103 | Retrieves a project. |
| 104 | |
| 105 | .Request |
| 106 | ---- |
| 107 | GET /projects/plugins%2Freplication HTTP/1.0 |
| 108 | ---- |
| 109 | |
| 110 | As response a link:#project-info[ProjectInfo] entity is returned that |
| 111 | describes the project. |
| 112 | |
| 113 | .Response |
| 114 | ---- |
| 115 | HTTP/1.1 200 OK |
| 116 | Content-Disposition: attachment |
| 117 | Content-Type: application/json;charset=UTF-8 |
| 118 | |
| 119 | )]}' |
| 120 | { |
| 121 | "kind": "gerritcodereview#project", |
| 122 | "id": "plugins%2Freplication", |
| 123 | "name": "plugins/replication", |
| 124 | "parent": "Public-Plugins", |
| 125 | "description": "Copies to other servers using the Git protocol" |
| 126 | } |
| 127 | ---- |
| 128 | |
| Bruce Zu | 798ea12 | 2013-02-18 16:55:43 +0800 | [diff] [blame] | 129 | [[create-project]] |
| 130 | Create Project |
| 131 | ~~~~~~~~~~~~~~ |
| 132 | [verse] |
| 133 | 'PUT /projects/link:#project-name[\{project-name\}]' |
| 134 | |
| 135 | Creates a new project. |
| 136 | |
| 137 | In the request body additional data for the project can be provided as |
| 138 | link:#project-input[ProjectInput]. |
| 139 | |
| 140 | .Request |
| 141 | ---- |
| 142 | PUT /projects/MyProject HTTP/1.0 |
| 143 | Content-Type: application/json;charset=UTF-8 |
| 144 | |
| 145 | { |
| 146 | "description": "This is a demo project.", |
| 147 | "submit_type": "CHERRY_PICK", |
| 148 | "owners": [ |
| 149 | "MyProject-Owners" |
| 150 | ] |
| 151 | } |
| 152 | ---- |
| 153 | |
| 154 | As response the link:#project-info[ProjectInfo] entity is returned that |
| 155 | describes the created project. |
| 156 | |
| 157 | .Response |
| 158 | ---- |
| 159 | HTTP/1.1 201 Created |
| 160 | Content-Disposition: attachment |
| 161 | Content-Type: application/json;charset=UTF-8 |
| 162 | |
| 163 | )]}' |
| 164 | { |
| 165 | "kind": "gerritcodereview#project", |
| 166 | "id": "MyProject", |
| 167 | "name": "MyProject", |
| 168 | "parent": "All-Projects", |
| 169 | "description": "This is a demo project." |
| 170 | } |
| 171 | ---- |
| 172 | |
| Edwin Kempin | 57f303c | 2013-02-13 15:52:22 +0100 | [diff] [blame] | 173 | [[get-project-description]] |
| Edwin Kempin | 50d3d9b | 2013-03-06 16:38:26 +0100 | [diff] [blame] | 174 | Get Project Description |
| 175 | ~~~~~~~~~~~~~~~~~~~~~~~ |
| 176 | [verse] |
| 177 | 'GET /projects/link:#project-name[\{project-name\}]/description' |
| 178 | |
| Edwin Kempin | 57f303c | 2013-02-13 15:52:22 +0100 | [diff] [blame] | 179 | Retrieves the description of a project. |
| 180 | |
| 181 | .Request |
| 182 | ---- |
| 183 | GET /projects/plugins%2Freplication/description HTTP/1.0 |
| 184 | ---- |
| 185 | |
| 186 | .Response |
| 187 | ---- |
| 188 | HTTP/1.1 200 OK |
| 189 | Content-Disposition: attachment |
| 190 | Content-Type: application/json;charset=UTF-8 |
| 191 | |
| 192 | )]}' |
| 193 | "Copies to other servers using the Git protocol" |
| 194 | ---- |
| 195 | |
| Edwin Kempin | efec449 | 2013-02-22 10:09:23 +0100 | [diff] [blame] | 196 | If the project does not have a description an empty string is returned. |
| 197 | |
| Edwin Kempin | 57f303c | 2013-02-13 15:52:22 +0100 | [diff] [blame] | 198 | [[set-project-description]] |
| Edwin Kempin | 50d3d9b | 2013-03-06 16:38:26 +0100 | [diff] [blame] | 199 | Set Project Description |
| 200 | ~~~~~~~~~~~~~~~~~~~~~~~ |
| 201 | [verse] |
| 202 | 'PUT /projects/link:#project-name[\{project-name\}]/description' |
| 203 | |
| Edwin Kempin | 57f303c | 2013-02-13 15:52:22 +0100 | [diff] [blame] | 204 | Sets the description of a project. |
| 205 | |
| 206 | The new project description must be provided in the request body inside |
| 207 | a link:#project-description-input[ProjectDescriptionInput] entity. |
| 208 | |
| 209 | .Request |
| 210 | ---- |
| 211 | PUT /projects/plugins%2Freplication/description HTTP/1.0 |
| 212 | Content-Type: application/json;charset=UTF-8 |
| 213 | |
| 214 | { |
| 215 | "description": "Plugin for Gerrit that handles the replication.", |
| 216 | "commit_message": "Update the project description" |
| 217 | } |
| 218 | ---- |
| 219 | |
| 220 | As response the new project description is returned. |
| 221 | |
| 222 | .Response |
| 223 | ---- |
| 224 | HTTP/1.1 200 OK |
| 225 | Content-Disposition: attachment |
| 226 | Content-Type: application/json;charset=UTF-8 |
| 227 | |
| 228 | )]}' |
| 229 | "Plugin for Gerrit that handles the replication." |
| 230 | ---- |
| 231 | |
| Edwin Kempin | 114ab16 | 2013-02-28 09:25:37 +0100 | [diff] [blame] | 232 | If the description was deleted the response is "`204 No Content`". |
| 233 | |
| Edwin Kempin | 57f303c | 2013-02-13 15:52:22 +0100 | [diff] [blame] | 234 | [[delete-project-description]] |
| Edwin Kempin | 50d3d9b | 2013-03-06 16:38:26 +0100 | [diff] [blame] | 235 | Delete Project Description |
| 236 | ~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 237 | [verse] |
| 238 | 'DELETE /projects/link:#project-name[\{project-name\}]/description' |
| 239 | |
| Edwin Kempin | 57f303c | 2013-02-13 15:52:22 +0100 | [diff] [blame] | 240 | Deletes the description of a project. |
| 241 | |
| Edwin Kempin | efec449 | 2013-02-22 10:09:23 +0100 | [diff] [blame] | 242 | The request body does not need to include a |
| 243 | link:#project-description-input[ProjectDescriptionInput] entity if no |
| 244 | commit message is specified. |
| Edwin Kempin | 57f303c | 2013-02-13 15:52:22 +0100 | [diff] [blame] | 245 | |
| Edwin Kempin | efec449 | 2013-02-22 10:09:23 +0100 | [diff] [blame] | 246 | Please note that some proxies prohibit request bodies for DELETE |
| Edwin Kempin | 57f303c | 2013-02-13 15:52:22 +0100 | [diff] [blame] | 247 | requests. In this case, if you want to specify a commit message, use |
| 248 | link:#set-project-description[PUT] to delete the description. |
| 249 | |
| 250 | .Request |
| 251 | ---- |
| 252 | DELETE /projects/plugins%2Freplication/description HTTP/1.0 |
| 253 | ---- |
| 254 | |
| 255 | .Response |
| 256 | ---- |
| 257 | HTTP/1.1 204 No Content |
| 258 | ---- |
| 259 | |
| Edwin Kempin | ecad88c | 2013-02-14 12:09:44 +0100 | [diff] [blame] | 260 | [[get-project-parent]] |
| Edwin Kempin | 50d3d9b | 2013-03-06 16:38:26 +0100 | [diff] [blame] | 261 | Get Project Parent |
| 262 | ~~~~~~~~~~~~~~~~~~ |
| 263 | [verse] |
| 264 | 'GET /projects/link:#project-name[\{project-name\}]/parent' |
| 265 | |
| Edwin Kempin | ecad88c | 2013-02-14 12:09:44 +0100 | [diff] [blame] | 266 | Retrieves the name of a project's parent project. For the |
| 267 | `All-Projects` root project an empty string is returned. |
| 268 | |
| 269 | .Request |
| 270 | ---- |
| 271 | GET /projects/plugins%2Freplication/parent HTTP/1.0 |
| 272 | ---- |
| 273 | |
| 274 | .Response |
| 275 | ---- |
| 276 | HTTP/1.1 200 OK |
| 277 | Content-Disposition: attachment |
| 278 | Content-Type: application/json;charset=UTF-8 |
| 279 | |
| 280 | )]}' |
| 281 | "All-Projects" |
| 282 | ---- |
| 283 | |
| 284 | [[set-project-parent]] |
| Edwin Kempin | 50d3d9b | 2013-03-06 16:38:26 +0100 | [diff] [blame] | 285 | Set Project Parent |
| 286 | ~~~~~~~~~~~~~~~~~~ |
| 287 | [verse] |
| 288 | 'PUT /projects/link:#project-name[\{project-name\}]/parent' |
| 289 | |
| Edwin Kempin | ecad88c | 2013-02-14 12:09:44 +0100 | [diff] [blame] | 290 | Sets the parent project for a project. |
| 291 | |
| 292 | The new name of the parent project must be provided in the request body |
| 293 | inside a link:#project-parent-input[ProjectParentInput] entity. |
| 294 | |
| 295 | .Request |
| 296 | ---- |
| 297 | PUT /projects/plugins%2Freplication/parent HTTP/1.0 |
| 298 | Content-Type: application/json;charset=UTF-8 |
| 299 | |
| 300 | { |
| 301 | "parent": "Public-Plugins", |
| 302 | "commit_message": "Update the project parent" |
| 303 | } |
| 304 | ---- |
| 305 | |
| 306 | As response the new parent project name is returned. |
| 307 | |
| 308 | .Response |
| 309 | ---- |
| 310 | HTTP/1.1 200 OK |
| 311 | Content-Disposition: attachment |
| 312 | Content-Type: application/json;charset=UTF-8 |
| 313 | |
| 314 | )]}' |
| 315 | "Public-Plugins" |
| 316 | ---- |
| 317 | |
| Edwin Kempin | 6b81337 | 2013-03-13 17:07:33 +0100 | [diff] [blame] | 318 | [[get-head]] |
| 319 | Get HEAD |
| 320 | ~~~~~~~~ |
| 321 | [verse] |
| 322 | 'GET /projects/link:#project-name[\{project-name\}]/HEAD' |
| 323 | |
| 324 | Retrieves for a project the name of the branch to which `HEAD` points. |
| 325 | |
| 326 | .Request |
| 327 | ---- |
| 328 | GET /projects/plugins%2Freplication/HEAD HTTP/1.0 |
| 329 | ---- |
| 330 | |
| 331 | .Response |
| 332 | ---- |
| 333 | HTTP/1.1 200 OK |
| 334 | Content-Disposition: attachment |
| 335 | Content-Type: application/json;charset=UTF-8 |
| 336 | |
| 337 | )]}' |
| 338 | "refs/heads/master" |
| 339 | ---- |
| 340 | |
| 341 | [[set-head]] |
| 342 | Set HEAD |
| 343 | ~~~~~~~~ |
| 344 | [verse] |
| 345 | 'PUT /projects/link:#project-name[\{project-name\}]/HEAD' |
| 346 | |
| 347 | Sets `HEAD` for a project. |
| 348 | |
| 349 | The new ref to which `HEAD` should point must be provided in the |
| 350 | request body inside a link:#head-input[HeadInput] entity. |
| 351 | |
| 352 | .Request |
| 353 | ---- |
| 354 | PUT /projects/plugins%2Freplication/HEAD HTTP/1.0 |
| 355 | Content-Type: application/json;charset=UTF-8 |
| 356 | |
| 357 | { |
| 358 | "ref": "refs/heads/stable" |
| 359 | } |
| 360 | ---- |
| 361 | |
| 362 | As response the new ref to which `HEAD` points is returned. |
| 363 | |
| 364 | .Response |
| 365 | ---- |
| 366 | HTTP/1.1 200 OK |
| 367 | Content-Disposition: attachment |
| 368 | Content-Type: application/json;charset=UTF-8 |
| 369 | |
| 370 | )]}' |
| 371 | "refs/heads/stable" |
| 372 | ---- |
| 373 | |
| Edwin Kempin | 19ea9b9 | 2013-03-20 13:20:26 +0100 | [diff] [blame] | 374 | [[get-repository-statistics]] |
| 375 | Get Repository Statistics |
| 376 | ~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 377 | [verse] |
| 378 | 'GET /projects/link:#project-name[\{project-name\}]/statistics.git' |
| 379 | |
| 380 | Return statistics for the repository of a project. |
| 381 | |
| 382 | .Request |
| 383 | ---- |
| 384 | GET /projects/plugins%2Freplication/statistics.git HTTP/1.0 |
| 385 | ---- |
| 386 | |
| 387 | The repository statistics are returned as a |
| 388 | link:#repository-statistics-info[RepositoryStatisticsInfo] entity. |
| 389 | |
| 390 | .Response |
| 391 | ---- |
| 392 | HTTP/1.1 200 OK |
| 393 | Content-Disposition: attachment |
| 394 | Content-Type: application/json;charset=UTF-8 |
| 395 | |
| 396 | )]}' |
| 397 | { |
| 398 | "number_of_loose_objects": 127, |
| 399 | "number_of_loose_refs": 15, |
| 400 | "number_of_pack_files": 15, |
| 401 | "number_of_packed_objects": 67, |
| 402 | "number_of_packed_refs": 0, |
| 403 | "size_of_loose_objects": 29466, |
| 404 | "size_of_packed_objects": 9646 |
| 405 | } |
| 406 | ---- |
| 407 | |
| Dave Borowitz | 237073a | 2013-04-04 16:52:27 -0700 | [diff] [blame] | 408 | [[get-config]] |
| 409 | Get Config |
| 410 | ~~~~~~~~~~ |
| 411 | [verse] |
| 412 | 'GET /projects/link:#project-name[\{project-name\}]/config' |
| 413 | |
| 414 | Gets some configuration information about a project. Note that this |
| 415 | config info is not simply the contents of `project.config`; it generally |
| 416 | contains fields that may have been inherited from parent projects. |
| 417 | |
| 418 | .Request |
| 419 | ---- |
| 420 | GET /projects/myproject/config |
| 421 | ---- |
| 422 | |
| 423 | A link:#config-info[ConfigInfo] entity is returned that describes the |
| 424 | project configuration. Some fields are only visible to users that have |
| 425 | read access to `refs/meta/config`. |
| 426 | |
| 427 | .Response |
| 428 | ---- |
| 429 | HTTP/1.1 200 OK |
| 430 | Content-Disposition: attachment |
| 431 | Content-Type: application/json;charset=UTF-8 |
| 432 | |
| 433 | )]}' |
| 434 | { |
| 435 | "kind": "gerritcodereview#project_config", |
| Edwin Kempin | a23eb10 | 2013-07-17 09:10:54 +0200 | [diff] [blame] | 436 | "description": "demo project", |
| Edwin Kempin | 0cb5a56 | 2013-07-12 15:41:04 +0200 | [diff] [blame] | 437 | "use_contributor_agreements": { |
| 438 | "value": true, |
| 439 | "configured_value": "TRUE", |
| 440 | "inherited_value": false |
| 441 | }, |
| 442 | "use_content_merge": { |
| 443 | "value": true, |
| 444 | "configured_value": "INHERIT", |
| 445 | "inherited_value": true |
| 446 | }, |
| 447 | "use_signed_off_by": { |
| 448 | "value": false, |
| 449 | "configured_value": "INHERIT", |
| 450 | "inherited_value": false |
| 451 | }, |
| 452 | "require_change_id": { |
| 453 | "value": false, |
| 454 | "configured_value": "FALSE", |
| 455 | "inherited_value": true |
| Edwin Kempin | 3c99f59 | 2013-07-15 10:12:27 +0200 | [diff] [blame] | 456 | }, |
| 457 | "max_object_size_limit": { |
| 458 | "value": "15m", |
| 459 | "configured_value": "15m", |
| 460 | "inherited_value": "20m" |
| 461 | }, |
| 462 | "submit_type": "MERGE_IF_NECESSARY", |
| 463 | "state": "ACTIVE", |
| David Ostrovsky | 9e8b2fb | 2013-08-30 08:09:53 +0200 | [diff] [blame] | 464 | "commentlinks": {}, |
| 465 | "actions": { |
| 466 | "cookbook~hello-project": { |
| 467 | "method": "POST", |
| 468 | "label": "Say hello", |
| 469 | "title": "Say hello in different languages", |
| 470 | "enabled": true |
| 471 | } |
| 472 | } |
| Dave Borowitz | 237073a | 2013-04-04 16:52:27 -0700 | [diff] [blame] | 473 | } |
| 474 | ---- |
| 475 | |
| Edwin Kempin | a23eb10 | 2013-07-17 09:10:54 +0200 | [diff] [blame] | 476 | [[set-config]] |
| 477 | Set Config |
| 478 | ~~~~~~~~~~ |
| 479 | [verse] |
| 480 | 'PUT /projects/link:#project-name[\{project-name\}]/config' |
| 481 | |
| 482 | Sets the configuration of a project. |
| 483 | |
| 484 | The new configuration must be provided in the request body as a |
| 485 | link:#config-input[ConfigInput] entity. |
| 486 | |
| 487 | .Request |
| 488 | ---- |
| 489 | PUT /projects/myproject/config HTTP/1.0 |
| 490 | Content-Type: application/json;charset=UTF-8 |
| 491 | |
| 492 | { |
| 493 | "description": "demo project", |
| 494 | "use_contributor_agreements": "FALSE", |
| 495 | "use_content_merge": "INHERIT", |
| 496 | "use_signed_off_by": "INHERIT", |
| 497 | "require_change_id": "TRUE", |
| 498 | "max_object_size_limit": "10m", |
| 499 | "submit_type": "REBASE_IF_NECESSARY", |
| 500 | "state": "ACTIVE" |
| 501 | } |
| 502 | ---- |
| 503 | |
| 504 | As response the new configuration is returned as a link:#config-info[ |
| 505 | ConfigInfo] entity. |
| 506 | |
| 507 | .Response |
| 508 | ---- |
| 509 | HTTP/1.1 200 OK |
| 510 | Content-Disposition: attachment |
| 511 | Content-Type: application/json;charset=UTF-8 |
| 512 | |
| 513 | )]}' |
| 514 | { |
| 515 | "kind": "gerritcodereview#project_config", |
| 516 | "use_contributor_agreements": { |
| 517 | "value": false, |
| 518 | "configured_value": "FALSE", |
| 519 | "inherited_value": false |
| 520 | }, |
| 521 | "use_content_merge": { |
| 522 | "value": true, |
| 523 | "configured_value": "INHERIT", |
| 524 | "inherited_value": true |
| 525 | }, |
| 526 | "use_signed_off_by": { |
| 527 | "value": false, |
| 528 | "configured_value": "INHERIT", |
| 529 | "inherited_value": false |
| 530 | }, |
| 531 | "require_change_id": { |
| 532 | "value": true, |
| 533 | "configured_value": "TRUE", |
| 534 | "inherited_value": true |
| 535 | }, |
| 536 | "max_object_size_limit": { |
| 537 | "value": "10m", |
| 538 | "configured_value": "10m", |
| 539 | "inherited_value": "20m" |
| 540 | }, |
| 541 | "submit_type": "REBASE_IF_NECESSARY", |
| 542 | "state": "ACTIVE", |
| 543 | "commentlinks": {} |
| 544 | } |
| 545 | ---- |
| 546 | |
| Edwin Kempin | ef3542f | 2013-03-19 13:31:49 +0100 | [diff] [blame] | 547 | [[run-gc]] |
| 548 | Run GC |
| 549 | ~~~~~~ |
| 550 | [verse] |
| 551 | 'POST /projects/link:#project-name[\{project-name\}]/gc' |
| 552 | |
| 553 | Run the Git garbage collection for the repository of a project. |
| 554 | |
| 555 | .Request |
| 556 | ---- |
| 557 | POST /projects/plugins%2Freplication/gc HTTP/1.0 |
| 558 | ---- |
| 559 | |
| 560 | The response is the streamed output of the garbage collection. |
| 561 | |
| 562 | .Response |
| 563 | ---- |
| 564 | HTTP/1.1 200 OK |
| 565 | Content-Disposition: attachment |
| 566 | Content-Type: text/plain;charset=UTF-8 |
| 567 | |
| 568 | collecting garbage for "plugins/replication": |
| 569 | Pack refs: 100% (21/21) |
| 570 | Counting objects: 20 |
| 571 | Finding sources: 100% (20/20) |
| 572 | Getting sizes: 100% (13/13) |
| 573 | Compressing objects: 83% (5/6) |
| 574 | Writing objects: 100% (20/20) |
| 575 | Selecting commits: 100% (7/7) |
| 576 | Building bitmaps: 100% (7/7) |
| 577 | Finding sources: 100% (41/41) |
| 578 | Getting sizes: 100% (25/25) |
| 579 | Compressing objects: 52% (12/23) |
| 580 | Writing objects: 100% (41/41) |
| 581 | Prune loose objects also found in pack files: 100% (36/36) |
| 582 | Prune loose, unreferenced objects: 100% (36/36) |
| 583 | done. |
| 584 | ---- |
| 585 | |
| Edwin Kempin | a686de9 | 2013-05-09 15:12:34 +0200 | [diff] [blame] | 586 | [[branch-endpoints]] |
| 587 | Branch Endpoints |
| 588 | ---------------- |
| 589 | |
| 590 | [[list-branches]] |
| 591 | List Branches |
| 592 | ~~~~~~~~~~~~~ |
| 593 | [verse] |
| 594 | 'GET /projects/link:#project-name[\{project-name\}]/branches/' |
| 595 | |
| 596 | List the branches of a project. |
| 597 | |
| 598 | As result a list of link:#branch-info[BranchInfo] entries is |
| 599 | returned. |
| 600 | |
| 601 | .Request |
| 602 | ---- |
| 603 | GET /projects/work%2Fmy-project/branches/ HTTP/1.0 |
| 604 | ---- |
| 605 | |
| 606 | .Response |
| 607 | ---- |
| 608 | HTTP/1.1 200 OK |
| 609 | Content-Disposition: attachment |
| 610 | Content-Type: application/json;charset=UTF-8 |
| 611 | |
| 612 | )]}' |
| 613 | [ |
| 614 | { |
| 615 | "ref": "HEAD", |
| 616 | "revision": "master" |
| 617 | }, |
| 618 | { |
| 619 | "ref": "refs/meta/config", |
| 620 | "revision": "76016386a0d8ecc7b6be212424978bb45959d668" |
| 621 | }, |
| 622 | { |
| 623 | "ref": "refs/heads/master", |
| 624 | "revision": "67ebf73496383c6777035e374d2d664009e2aa5c" |
| 625 | }, |
| 626 | { |
| 627 | "ref": "refs/heads/stable", |
| 628 | "revision": "64ca533bd0eb5252d2fee83f63da67caae9b4674", |
| 629 | "can_delete": true |
| 630 | } |
| 631 | ] |
| 632 | ---- |
| 633 | |
| Edwin Kempin | 196e173 | 2013-05-09 15:12:34 +0200 | [diff] [blame] | 634 | [[get-branch]] |
| 635 | Get Branch |
| 636 | ~~~~~~~~~~ |
| 637 | [verse] |
| 638 | 'GET /projects/link:#project-name[\{project-name\}]/branches/link:#branch-id[\{branch-id\}]' |
| 639 | |
| 640 | Retrieves a branch of a project. |
| 641 | |
| 642 | .Request |
| 643 | ---- |
| 644 | GET /projects/work%2Fmy-project/branches/master HTTP/1.0 |
| 645 | ---- |
| 646 | |
| 647 | As response a link:#branch-info[BranchInfo] entity is returned that |
| 648 | describes the branch. |
| 649 | |
| 650 | .Response |
| 651 | ---- |
| 652 | HTTP/1.1 200 OK |
| 653 | Content-Disposition: attachment |
| 654 | Content-Type: application/json;charset=UTF-8 |
| 655 | |
| 656 | )]}' |
| 657 | { |
| 658 | "ref": "refs/heads/master", |
| 659 | "revision": "67ebf73496383c6777035e374d2d664009e2aa5c" |
| 660 | } |
| 661 | ---- |
| 662 | |
| Edwin Kempin | 5c0d6b3 | 2013-05-09 19:54:37 +0200 | [diff] [blame] | 663 | [[create-branch]] |
| 664 | Create Branch |
| 665 | ~~~~~~~~~~~~~ |
| 666 | [verse] |
| 667 | 'PUT /projects/link:#project-name[\{project-name\}]/branches/link:#branch-id[\{branch-id\}]' |
| 668 | |
| 669 | Creates a new branch. |
| 670 | |
| 671 | In the request body additional data for the branch can be provided as |
| 672 | link:#branch-input[BranchInput]. |
| 673 | |
| 674 | .Request |
| 675 | ---- |
| 676 | PUT /projects/MyProject/branches/stable HTTP/1.0 |
| 677 | Content-Type: application/json;charset=UTF-8 |
| 678 | |
| 679 | { |
| 680 | "revision": "76016386a0d8ecc7b6be212424978bb45959d668" |
| 681 | } |
| 682 | ---- |
| 683 | |
| 684 | As response a link:#branch-info[BranchInfo] entity is returned that |
| 685 | describes the created branch. |
| 686 | |
| 687 | .Response |
| 688 | ---- |
| 689 | HTTP/1.1 201 Created |
| 690 | Content-Disposition: attachment |
| 691 | Content-Type: application/json;charset=UTF-8 |
| 692 | |
| 693 | )]}' |
| 694 | { |
| 695 | "ref": "refs/heads/stable", |
| 696 | "revision": "76016386a0d8ecc7b6be212424978bb45959d668", |
| 697 | "can_delete": true |
| 698 | } |
| 699 | ---- |
| 700 | |
| Edwin Kempin | 6ce96a1 | 2013-06-06 13:20:01 +0200 | [diff] [blame] | 701 | [[delete-branch]] |
| 702 | Delete Branch |
| 703 | ~~~~~~~~~~~~~ |
| 704 | [verse] |
| 705 | 'DELETE /projects/link:#project-name[\{project-name\}]/branches/link:#branch-id[\{branch-id\}]' |
| 706 | |
| 707 | Deletes a branch. |
| 708 | |
| 709 | .Request |
| 710 | ---- |
| 711 | DELETE /projects/MyProject/branches/stable HTTP/1.0 |
| 712 | ---- |
| 713 | |
| 714 | .Response |
| 715 | ---- |
| 716 | HTTP/1.1 204 No Content |
| 717 | ---- |
| 718 | |
| Edwin Kempin | 4425c74 | 2013-03-18 13:23:00 +0100 | [diff] [blame] | 719 | [[child-project-endpoints]] |
| 720 | Child Project Endpoints |
| 721 | ----------------------- |
| 722 | |
| 723 | [[list-child-projects]] |
| 724 | List Child Projects |
| 725 | ~~~~~~~~~~~~~~~~~~~ |
| 726 | [verse] |
| 727 | 'GET /projects/link:#project-name[\{project-name\}]/children/' |
| 728 | |
| 729 | List the direct child projects of a project. |
| 730 | |
| 731 | .Request |
| 732 | ---- |
| 733 | GET /projects/Public-Plugins/children/ HTTP/1.0 |
| 734 | ---- |
| 735 | |
| 736 | As result a list of link:#project-info[ProjectInfo] entries is |
| 737 | returned that describe the child projects. |
| 738 | |
| 739 | .Response |
| 740 | ---- |
| 741 | HTTP/1.1 200 OK |
| 742 | Content-Disposition: attachment |
| 743 | Content-Type: application/json;charset=UTF-8 |
| 744 | |
| 745 | )]}' |
| 746 | [ |
| 747 | { |
| 748 | "kind": "gerritcodereview#project", |
| 749 | "id": "plugins%2Freplication", |
| 750 | "name": "plugins/replication", |
| 751 | "parent": "Public-Plugins", |
| 752 | "description": "Copies to other servers using the Git protocol" |
| 753 | }, |
| 754 | { |
| 755 | "kind": "gerritcodereview#project", |
| 756 | "id": "plugins%2Freviewnotes", |
| 757 | "name": "plugins/reviewnotes", |
| 758 | "parent": "Public-Plugins", |
| 759 | "description": "Annotates merged commits using notes on refs/notes/review." |
| 760 | }, |
| 761 | { |
| 762 | "kind": "gerritcodereview#project", |
| 763 | "id": "plugins%2Fsingleusergroup", |
| 764 | "name": "plugins/singleusergroup", |
| 765 | "parent": "Public-Plugins", |
| 766 | "description": "GroupBackend enabling users to be directly added to access rules" |
| 767 | } |
| 768 | ] |
| 769 | ---- |
| 770 | |
| Edwin Kempin | f95bd17 | 2013-03-19 11:10:57 +0100 | [diff] [blame] | 771 | To resolve the child projects of a project recursively the parameter |
| 772 | `recursive` can be set. |
| 773 | |
| 774 | Child projects that are not visible to the calling user are ignored and |
| 775 | are not resolved further. |
| 776 | |
| 777 | .Request |
| 778 | ---- |
| 779 | GET /projects/Public-Projects/children/?recursive HTTP/1.0 |
| 780 | ---- |
| 781 | |
| 782 | .Response |
| 783 | ---- |
| 784 | HTTP/1.1 200 OK |
| 785 | Content-Disposition: attachment |
| 786 | Content-Type: application/json;charset=UTF-8 |
| 787 | |
| 788 | )]}' |
| 789 | [ |
| 790 | { |
| 791 | "kind": "gerritcodereview#project", |
| 792 | "id": "gerrit", |
| 793 | "name": "gerrit", |
| 794 | "parent": "Public-Projects", |
| 795 | "description": "Gerrit Code Review" |
| 796 | }, |
| 797 | { |
| 798 | "kind": "gerritcodereview#project", |
| 799 | "id": "plugins%2Freplication", |
| 800 | "name": "plugins/replication", |
| 801 | "parent": "Public-Plugins", |
| 802 | "description": "Copies to other servers using the Git protocol" |
| 803 | }, |
| 804 | { |
| 805 | "kind": "gerritcodereview#project", |
| 806 | "id": "plugins%2Freviewnotes", |
| 807 | "name": "plugins/reviewnotes", |
| 808 | "parent": "Public-Plugins", |
| 809 | "description": "Annotates merged commits using notes on refs/notes/review." |
| 810 | }, |
| 811 | { |
| 812 | "kind": "gerritcodereview#project", |
| 813 | "id": "plugins%2Fsingleusergroup", |
| 814 | "name": "plugins/singleusergroup", |
| 815 | "parent": "Public-Plugins", |
| 816 | "description": "GroupBackend enabling users to be directly added to access rules" |
| 817 | }, |
| 818 | { |
| 819 | "kind": "gerritcodereview#project", |
| 820 | "id": "Public-Plugins", |
| 821 | "name": "Public-Plugins", |
| 822 | "parent": "Public-Projects", |
| 823 | "description": "Parent project for plugins/*" |
| 824 | } |
| 825 | ] |
| 826 | ---- |
| 827 | |
| Edwin Kempin | 5b6c406 | 2013-03-19 09:26:03 +0100 | [diff] [blame] | 828 | [[get-child-project]] |
| 829 | Get Child Project |
| 830 | ~~~~~~~~~~~~~~~~~ |
| 831 | [verse] |
| 832 | 'GET /projects/link:#project-name[\{project-name\}]/children/link:#project-name[\{project-name\}]' |
| 833 | |
| Edwin Kempin | 8a3fb5b | 2013-03-21 15:02:22 +0100 | [diff] [blame] | 834 | Retrieves a child project. If a non-direct child project should be |
| 835 | retrieved the parameter `recursive` must be set. |
| Edwin Kempin | 5b6c406 | 2013-03-19 09:26:03 +0100 | [diff] [blame] | 836 | |
| 837 | .Request |
| 838 | ---- |
| 839 | GET /projects/Public-Plugins/children/plugins%2Freplication HTTP/1.0 |
| 840 | ---- |
| 841 | |
| 842 | As response a link:#project-info[ProjectInfo] entity is returned that |
| 843 | describes the child project. |
| 844 | |
| 845 | .Response |
| 846 | ---- |
| 847 | HTTP/1.1 200 OK |
| 848 | Content-Disposition: attachment |
| 849 | Content-Type: application/json;charset=UTF-8 |
| 850 | |
| 851 | )]}' |
| 852 | { |
| 853 | "kind": "gerritcodereview#project", |
| 854 | "id": "plugins%2Freplication", |
| 855 | "name": "plugins/replication", |
| 856 | "parent": "Public-Plugins", |
| 857 | "description": "Copies to other servers using the Git protocol" |
| 858 | } |
| 859 | ---- |
| 860 | |
| Edwin Kempin | c3fe3cb | 2013-02-13 15:09:23 +0100 | [diff] [blame] | 861 | [[dashboard-endpoints]] |
| 862 | Dashboard Endpoints |
| 863 | ------------------- |
| 864 | |
| Edwin Kempin | 7620274 | 2013-02-15 13:51:50 +0100 | [diff] [blame] | 865 | [[list-dashboards]] |
| Edwin Kempin | 50d3d9b | 2013-03-06 16:38:26 +0100 | [diff] [blame] | 866 | List Dashboards |
| 867 | ~~~~~~~~~~~~~~~ |
| 868 | [verse] |
| 869 | 'GET /projects/link:#project-name[\{project-name\}]/dashboards/' |
| 870 | |
| Edwin Kempin | d0a6392 | 2013-01-23 16:32:59 +0100 | [diff] [blame] | 871 | List custom dashboards for a project. |
| 872 | |
| Edwin Kempin | 5536762 | 2013-02-05 09:09:23 +0100 | [diff] [blame] | 873 | As result a list of link:#dashboard-info[DashboardInfo] entries is |
| 874 | returned. |
| 875 | |
| Edwin Kempin | d0a6392 | 2013-01-23 16:32:59 +0100 | [diff] [blame] | 876 | List all dashboards for the `work/my-project` project: |
| Edwin Kempin | 3744083 | 2013-02-06 11:36:00 +0100 | [diff] [blame] | 877 | |
| 878 | .Request |
| Edwin Kempin | d0a6392 | 2013-01-23 16:32:59 +0100 | [diff] [blame] | 879 | ---- |
| 880 | GET /projects/work%2Fmy-project/dashboards/ HTTP/1.0 |
| Edwin Kempin | 3744083 | 2013-02-06 11:36:00 +0100 | [diff] [blame] | 881 | ---- |
| Edwin Kempin | d0a6392 | 2013-01-23 16:32:59 +0100 | [diff] [blame] | 882 | |
| Edwin Kempin | 3744083 | 2013-02-06 11:36:00 +0100 | [diff] [blame] | 883 | .Response |
| 884 | ---- |
| Edwin Kempin | d0a6392 | 2013-01-23 16:32:59 +0100 | [diff] [blame] | 885 | HTTP/1.1 200 OK |
| 886 | Content-Disposition: attachment |
| 887 | Content-Type: application/json;charset=UTF-8 |
| 888 | |
| 889 | )]}' |
| 890 | [ |
| 891 | { |
| 892 | "kind": "gerritcodereview#dashboard", |
| 893 | "id": "main:closed", |
| 894 | "ref": "main", |
| 895 | "path": "closed", |
| 896 | "description": "Merged and abandoned changes in last 7 weeks", |
| 897 | "url": "/dashboard/?title\u003dClosed+changes\u0026Merged\u003dstatus:merged+age:7w\u0026Abandoned\u003dstatus:abandoned+age:7w", |
| 898 | "default": true, |
| 899 | "title": "Closed changes", |
| 900 | "sections": [ |
| 901 | { |
| 902 | "name": "Merged", |
| 903 | "query": "status:merged age:7w" |
| 904 | }, |
| 905 | { |
| 906 | "name": "Abandoned", |
| 907 | "query": "status:abandoned age:7w" |
| 908 | } |
| 909 | ] |
| 910 | } |
| 911 | ] |
| 912 | ---- |
| 913 | |
| Edwin Kempin | a64c4b9 | 2013-01-23 11:30:40 +0100 | [diff] [blame] | 914 | .Get all dashboards of the 'All-Projects' project |
| 915 | **** |
| 916 | get::/projects/All-Projects/dashboards/ |
| 917 | **** |
| 918 | |
| Edwin Kempin | 67e923c | 2013-02-14 13:57:12 +0100 | [diff] [blame] | 919 | [[get-dashboard]] |
| Edwin Kempin | 50d3d9b | 2013-03-06 16:38:26 +0100 | [diff] [blame] | 920 | Get Dashboard |
| 921 | ~~~~~~~~~~~~~ |
| 922 | [verse] |
| 923 | 'GET /projects/link:#project-name[\{project-name\}]/dashboards/link:#dashboard-id[\{dashboard-id\}]' |
| 924 | |
| Edwin Kempin | 67e923c | 2013-02-14 13:57:12 +0100 | [diff] [blame] | 925 | Retrieves a project dashboard. The dashboard can be defined on that |
| 926 | project or be inherited from a parent project. |
| 927 | |
| 928 | .Request |
| 929 | ---- |
| 930 | GET /projects/work%2Fmy-project/dashboards/main:closed HTTP/1.0 |
| 931 | ---- |
| 932 | |
| 933 | As response a link:#dashboard-info[DashboardInfo] entity is returned |
| 934 | that describes the dashboard. |
| 935 | |
| 936 | .Response |
| 937 | ---- |
| 938 | HTTP/1.1 200 OK |
| 939 | Content-Disposition: attachment |
| 940 | Content-Type: application/json;charset=UTF-8 |
| 941 | |
| 942 | )]}' |
| 943 | { |
| 944 | "kind": "gerritcodereview#dashboard", |
| 945 | "id": "main:closed", |
| 946 | "ref": "main", |
| 947 | "path": "closed", |
| 948 | "description": "Merged and abandoned changes in last 7 weeks", |
| 949 | "url": "/dashboard/?title\u003dClosed+changes\u0026Merged\u003dstatus:merged+age:7w\u0026Abandoned\u003dstatus:abandoned+age:7w", |
| 950 | "default": true, |
| 951 | "title": "Closed changes", |
| 952 | "sections": [ |
| 953 | { |
| 954 | "name": "Merged", |
| 955 | "query": "status:merged age:7w" |
| 956 | }, |
| 957 | { |
| 958 | "name": "Abandoned", |
| 959 | "query": "status:abandoned age:7w" |
| 960 | } |
| 961 | ] |
| 962 | } |
| 963 | ---- |
| 964 | |
| 965 | To retrieve the default dashboard of a project use `default` as |
| 966 | dashboard-id. |
| Edwin Kempin | 3744083 | 2013-02-06 11:36:00 +0100 | [diff] [blame] | 967 | |
| 968 | .Request |
| Edwin Kempin | d0a6392 | 2013-01-23 16:32:59 +0100 | [diff] [blame] | 969 | ---- |
| 970 | GET /projects/work%2Fmy-project/dashboards/default HTTP/1.0 |
| Edwin Kempin | 3744083 | 2013-02-06 11:36:00 +0100 | [diff] [blame] | 971 | ---- |
| Edwin Kempin | d0a6392 | 2013-01-23 16:32:59 +0100 | [diff] [blame] | 972 | |
| Edwin Kempin | 3744083 | 2013-02-06 11:36:00 +0100 | [diff] [blame] | 973 | .Response |
| 974 | ---- |
| Edwin Kempin | d0a6392 | 2013-01-23 16:32:59 +0100 | [diff] [blame] | 975 | HTTP/1.1 200 OK |
| 976 | Content-Disposition: attachment |
| 977 | Content-Type: application/json;charset=UTF-8 |
| 978 | |
| 979 | )]}' |
| 980 | { |
| 981 | "kind": "gerritcodereview#dashboard", |
| 982 | "id": "main:closed", |
| 983 | "ref": "main", |
| 984 | "path": "closed", |
| Edwin Kempin | 67e923c | 2013-02-14 13:57:12 +0100 | [diff] [blame] | 985 | "description": "Merged and abandoned changes in last 7 weeks", |
| 986 | "url": "/dashboard/?title\u003dClosed+changes\u0026Merged\u003dstatus:merged+age:7w\u0026Abandoned\u003dstatus:abandoned+age:7w", |
| Edwin Kempin | d0a6392 | 2013-01-23 16:32:59 +0100 | [diff] [blame] | 987 | "default": true, |
| Edwin Kempin | 67e923c | 2013-02-14 13:57:12 +0100 | [diff] [blame] | 988 | "title": "Closed changes", |
| 989 | "sections": [ |
| 990 | { |
| 991 | "name": "Merged", |
| 992 | "query": "status:merged age:7w" |
| 993 | }, |
| 994 | { |
| 995 | "name": "Abandoned", |
| 996 | "query": "status:abandoned age:7w" |
| 997 | } |
| 998 | ] |
| Edwin Kempin | d0a6392 | 2013-01-23 16:32:59 +0100 | [diff] [blame] | 999 | } |
| 1000 | ---- |
| 1001 | |
| Edwin Kempin | 67e923c | 2013-02-14 13:57:12 +0100 | [diff] [blame] | 1002 | [[set-dashboard]] |
| Edwin Kempin | 50d3d9b | 2013-03-06 16:38:26 +0100 | [diff] [blame] | 1003 | Set Dashboard |
| 1004 | ~~~~~~~~~~~~~ |
| 1005 | [verse] |
| 1006 | 'PUT /projects/link:#project-name[\{project-name\}]/dashboards/link:#dashboard-id[\{dashboard-id\}]' |
| 1007 | |
| Edwin Kempin | 67e923c | 2013-02-14 13:57:12 +0100 | [diff] [blame] | 1008 | Updates/Creates a project dashboard. |
| 1009 | |
| 1010 | Currently only supported for the `default` dashboard. |
| 1011 | |
| 1012 | The creation/update information for the dashboard must be provided in |
| 1013 | the request body as a link:#dashboard-input[DashboardInput] entity. |
| 1014 | |
| 1015 | .Request |
| 1016 | ---- |
| 1017 | PUT /projects/work%2Fmy-project/dashboards/default HTTP/1.0 |
| 1018 | Content-Type: application/json;charset=UTF-8 |
| 1019 | |
| 1020 | { |
| 1021 | "id": "main:closed", |
| 1022 | "commit_message": "Define the default dashboard" |
| 1023 | } |
| 1024 | ---- |
| 1025 | |
| 1026 | As response the new/updated dashboard is returned as a |
| 1027 | link:#dashboard-info[DashboardInfo] entity. |
| 1028 | |
| 1029 | .Response |
| 1030 | ---- |
| 1031 | HTTP/1.1 200 OK |
| 1032 | Content-Disposition: attachment |
| 1033 | Content-Type: application/json;charset=UTF-8 |
| 1034 | |
| 1035 | )]}' |
| 1036 | { |
| 1037 | "kind": "gerritcodereview#dashboard", |
| 1038 | "id": "main:closed", |
| 1039 | "ref": "main", |
| 1040 | "path": "closed", |
| 1041 | "description": "Merged and abandoned changes in last 7 weeks", |
| 1042 | "url": "/dashboard/?title\u003dClosed+changes\u0026Merged\u003dstatus:merged+age:7w\u0026Abandoned\u003dstatus:abandoned+age:7w", |
| 1043 | "default": true, |
| 1044 | "title": "Closed changes", |
| 1045 | "sections": [ |
| 1046 | { |
| 1047 | "name": "Merged", |
| 1048 | "query": "status:merged age:7w" |
| 1049 | }, |
| 1050 | { |
| 1051 | "name": "Abandoned", |
| 1052 | "query": "status:abandoned age:7w" |
| 1053 | } |
| 1054 | ] |
| 1055 | } |
| 1056 | ---- |
| 1057 | |
| 1058 | [[delete-dashboard]] |
| Edwin Kempin | 50d3d9b | 2013-03-06 16:38:26 +0100 | [diff] [blame] | 1059 | Delete Dashboard |
| 1060 | ~~~~~~~~~~~~~~~~ |
| 1061 | [verse] |
| 1062 | 'DELETE /projects/link:#project-name[\{project-name\}]/dashboards/link:#dashboard-id[\{dashboard-id\}]' |
| 1063 | |
| Edwin Kempin | 67e923c | 2013-02-14 13:57:12 +0100 | [diff] [blame] | 1064 | Deletes a project dashboard. |
| 1065 | |
| 1066 | Currently only supported for the `default` dashboard. |
| 1067 | |
| Edwin Kempin | efec449 | 2013-02-22 10:09:23 +0100 | [diff] [blame] | 1068 | The request body does not need to include a link:#dashboard-input[ |
| John Spurlock | d25fad1 | 2013-03-09 11:48:49 -0500 | [diff] [blame] | 1069 | DashboardInput] entity if no commit message is specified. |
| Edwin Kempin | 67e923c | 2013-02-14 13:57:12 +0100 | [diff] [blame] | 1070 | |
| 1071 | Please note that some proxies prohibit request bodies for DELETE |
| 1072 | requests. |
| 1073 | |
| 1074 | .Request |
| 1075 | ---- |
| 1076 | DELETE /projects/work%2Fmy-project/dashboards/default HTTP/1.0 |
| 1077 | ---- |
| 1078 | |
| 1079 | .Response |
| 1080 | ---- |
| 1081 | HTTP/1.1 204 No Content |
| 1082 | ---- |
| 1083 | |
| Edwin Kempin | 34d8335 | 2013-02-06 10:40:17 +0100 | [diff] [blame] | 1084 | |
| 1085 | [[ids]] |
| 1086 | IDs |
| 1087 | --- |
| 1088 | |
| Edwin Kempin | 196e173 | 2013-05-09 15:12:34 +0200 | [diff] [blame] | 1089 | [[branch-id]] |
| 1090 | \{branch-id\} |
| 1091 | ~~~~~~~~~~~~~ |
| 1092 | The name of a branch or `HEAD`. The prefix `refs/heads/` can be |
| 1093 | omitted. |
| 1094 | |
| Edwin Kempin | 50d3d9b | 2013-03-06 16:38:26 +0100 | [diff] [blame] | 1095 | [[dashboard-id]] |
| Edwin Kempin | 67e923c | 2013-02-14 13:57:12 +0100 | [diff] [blame] | 1096 | \{dashboard-id\} |
| 1097 | ~~~~~~~~~~~~~~~~ |
| 1098 | The ID of a dashboard in the format '<ref>:<path>'. |
| 1099 | |
| 1100 | A special dashboard ID is `default` which represents the default |
| 1101 | dashboard of a project. |
| 1102 | |
| Edwin Kempin | 50d3d9b | 2013-03-06 16:38:26 +0100 | [diff] [blame] | 1103 | [[project-name]] |
| Edwin Kempin | 34d8335 | 2013-02-06 10:40:17 +0100 | [diff] [blame] | 1104 | \{project-name\} |
| 1105 | ~~~~~~~~~~~~~~~~ |
| 1106 | The name of the project. |
| 1107 | |
| 1108 | |
| Edwin Kempin | 51a6dc9 | 2013-02-04 15:43:59 +0100 | [diff] [blame] | 1109 | [[json-entities]] |
| 1110 | JSON Entities |
| 1111 | ------------- |
| 1112 | |
| Edwin Kempin | a686de9 | 2013-05-09 15:12:34 +0200 | [diff] [blame] | 1113 | [[branch-info]] |
| 1114 | BranchInfo |
| 1115 | ~~~~~~~~~~ |
| 1116 | The `BranchInfo` entity contains information about a branch. |
| 1117 | |
| 1118 | [options="header",width="50%",cols="1,^2,4"] |
| 1119 | |========================= |
| 1120 | |Field Name ||Description |
| 1121 | |`ref` ||The ref of the branch. |
| 1122 | |`revision` ||The revision to which the branch points. |
| 1123 | |`can_delete`|`false` if not set| |
| 1124 | Whether the calling user can delete this branch. |
| 1125 | |========================= |
| 1126 | |
| Edwin Kempin | 5c0d6b3 | 2013-05-09 19:54:37 +0200 | [diff] [blame] | 1127 | [[branch-input]] |
| 1128 | BranchInput |
| 1129 | ~~~~~~~~~~~ |
| 1130 | The `BranchInput` entity contains information for the creation of |
| 1131 | a new branch. |
| 1132 | |
| 1133 | [options="header",width="50%",cols="1,^2,4"] |
| 1134 | |======================= |
| 1135 | |Field Name||Description |
| 1136 | |`ref` |optional| |
| 1137 | The name of the branch. The prefix `refs/heads/` can be |
| 1138 | omitted. + |
| 1139 | If set, must match the branch ID in the URL. |
| 1140 | |`revision`|optional| |
| 1141 | The base revision of the new branch. + |
| 1142 | If not set, `HEAD` will be used as base revision. |
| 1143 | |======================= |
| 1144 | |
| Edwin Kempin | 0cb5a56 | 2013-07-12 15:41:04 +0200 | [diff] [blame] | 1145 | [[config-info]] |
| 1146 | ConfigInfo |
| 1147 | ~~~~~~~~~~ |
| 1148 | The `ConfigInfo` entity contains information about the effective project |
| 1149 | configuration. |
| 1150 | |
| Edwin Kempin | 81e1d1f | 2013-07-15 10:13:46 +0200 | [diff] [blame] | 1151 | [options="header",width="50%",cols="1,^2,4"] |
| Edwin Kempin | 3660c13 | 2013-07-16 08:03:11 +0200 | [diff] [blame] | 1152 | |========================================= |
| 1153 | |Field Name ||Description |
| Edwin Kempin | a23eb10 | 2013-07-17 09:10:54 +0200 | [diff] [blame] | 1154 | |`description` |optional| |
| 1155 | The description of the project. |
| Edwin Kempin | 3660c13 | 2013-07-16 08:03:11 +0200 | [diff] [blame] | 1156 | |`use_contributor_agreements`|optional| |
| Edwin Kempin | 0cb5a56 | 2013-07-12 15:41:04 +0200 | [diff] [blame] | 1157 | link:#inherited-boolean-info[InheritedBooleanInfo] that tells whether |
| 1158 | authors must complete a contributor agreement on the site before |
| 1159 | pushing any commits or changes to this project. |
| Edwin Kempin | 3660c13 | 2013-07-16 08:03:11 +0200 | [diff] [blame] | 1160 | |`use_content_merge` |optional| |
| Edwin Kempin | 0cb5a56 | 2013-07-12 15:41:04 +0200 | [diff] [blame] | 1161 | link:#inherited-boolean-info[InheritedBooleanInfo] that tells whether |
| 1162 | Gerrit will try to perform a 3-way merge of text file content when a |
| 1163 | file has been modified by both the destination branch and the change |
| 1164 | being submitted. This option only takes effect if submit type is not |
| 1165 | FAST_FORWARD_ONLY. |
| Edwin Kempin | 3660c13 | 2013-07-16 08:03:11 +0200 | [diff] [blame] | 1166 | |`use_signed_off_by` |optional| |
| Edwin Kempin | 0cb5a56 | 2013-07-12 15:41:04 +0200 | [diff] [blame] | 1167 | link:#inherited-boolean-info[InheritedBooleanInfo] that tells whether |
| 1168 | each change must contain a Signed-off-by line from either the author or |
| 1169 | the uploader in the commit message. |
| Edwin Kempin | 3660c13 | 2013-07-16 08:03:11 +0200 | [diff] [blame] | 1170 | |`require_change_id` |optional| |
| Edwin Kempin | 0cb5a56 | 2013-07-12 15:41:04 +0200 | [diff] [blame] | 1171 | link:#inherited-boolean-info[InheritedBooleanInfo] that tells whether a |
| 1172 | valid link:user-changeid.html[Change-Id] footer in any commit uploaded |
| 1173 | for review is required. This does not apply to commits pushed directly |
| 1174 | to a branch or tag. |
| Edwin Kempin | 3c99f59 | 2013-07-15 10:12:27 +0200 | [diff] [blame] | 1175 | |`max_object_size_limit` || |
| 1176 | The link:config-gerrit.html#receive.maxObjectSizeLimit[max object size |
| 1177 | limit] of this project as a link:#max-object-size-limit-info[ |
| 1178 | MaxObjectSizeLimitInfo] entity. |
| 1179 | |`submit_type` || |
| 1180 | The default submit type of the project, can be `MERGE_IF_NECESSARY`, |
| 1181 | `FAST_FORWARD_ONLY`, `REBASE_IF_NECESSARY`, `MERGE_ALWAYS` or |
| 1182 | `CHERRY_PICK`. |
| 1183 | |`state` |optional| |
| 1184 | The state of the project, can be `ACTIVE`, `READ_ONLY` or `HIDDEN`. + |
| 1185 | Not set if the project state is `ACTIVE`. |
| Edwin Kempin | 3660c13 | 2013-07-16 08:03:11 +0200 | [diff] [blame] | 1186 | |`commentlinks` || |
| Edwin Kempin | 8aa53af | 2013-07-15 10:43:15 +0200 | [diff] [blame] | 1187 | Map with the comment link configurations of the project. The name of |
| 1188 | the comment link configuration is mapped to the comment link |
| 1189 | configuration, which has the same format as the |
| 1190 | link:config-gerrit.html#_a_id_commentlink_a_section_commentlink[ |
| 1191 | commentlink section] of `gerrit.config`. |
| Edwin Kempin | 3660c13 | 2013-07-16 08:03:11 +0200 | [diff] [blame] | 1192 | |`theme` |optional| |
| Edwin Kempin | 272402e | 2013-07-15 11:17:36 +0200 | [diff] [blame] | 1193 | The theme that is configured for the project as a link:#theme-info[ |
| 1194 | ThemeInfo] entity. |
| David Ostrovsky | 9e8b2fb | 2013-08-30 08:09:53 +0200 | [diff] [blame] | 1195 | |`actions` |optional| |
| 1196 | Actions the caller might be able to perform on this project. The |
| 1197 | information is a map of view names to |
| 1198 | link:rest-api-changes.html#action-info[ActionInfo] entities. |
| Edwin Kempin | 3660c13 | 2013-07-16 08:03:11 +0200 | [diff] [blame] | 1199 | |========================================= |
| Edwin Kempin | 0cb5a56 | 2013-07-12 15:41:04 +0200 | [diff] [blame] | 1200 | |
| Edwin Kempin | a23eb10 | 2013-07-17 09:10:54 +0200 | [diff] [blame] | 1201 | [[config-input]] |
| 1202 | ConfigInput |
| 1203 | ~~~~~~~~~~~ |
| 1204 | The `ConfigInput` entity describes a new project configuration. |
| 1205 | |
| 1206 | [options="header",width="50%",cols="1,^2,4"] |
| 1207 | |========================================= |
| 1208 | |Field Name ||Description |
| 1209 | |`description` |optional| |
| 1210 | The new description of the project. + |
| 1211 | If not set, the description is removed. |
| 1212 | |`use_contributor_agreements`|optional| |
| 1213 | Whether authors must complete a contributor agreement on the site |
| 1214 | before pushing any commits or changes to this project. + |
| 1215 | Can be `TRUE`, `FALSE` or `INHERIT`. + |
| 1216 | If not set, this setting is not updated. |
| 1217 | |`use_content_merge` |optional| |
| 1218 | Whether Gerrit will try to perform a 3-way merge of text file content |
| 1219 | when a file has been modified by both the destination branch and the |
| 1220 | change being submitted. This option only takes effect if submit type is |
| 1221 | not FAST_FORWARD_ONLY. + |
| 1222 | Can be `TRUE`, `FALSE` or `INHERIT`. + |
| 1223 | If not set, this setting is not updated. |
| 1224 | |`use_signed_off_by` |optional| |
| 1225 | Whether each change must contain a Signed-off-by line from either the |
| 1226 | author or the uploader in the commit message. + |
| 1227 | Can be `TRUE`, `FALSE` or `INHERIT`. + |
| 1228 | If not set, this setting is not updated. |
| 1229 | |`require_change_id` |optional| |
| 1230 | Whether a valid link:user-changeid.html[Change-Id] footer in any commit |
| 1231 | uploaded for review is required. This does not apply to commits pushed |
| 1232 | directly to a branch or tag. + |
| 1233 | Can be `TRUE`, `FALSE` or `INHERIT`. + |
| 1234 | If not set, this setting is not updated. |
| 1235 | |`max_object_size_limit` |optional| |
| 1236 | The link:config-gerrit.html#receive.maxObjectSizeLimit[max object size |
| 1237 | limit] of this project as a link:#max-object-size-limit-info[ |
| 1238 | MaxObjectSizeLimitInfo] entity. + |
| 1239 | If set to `0`, the max object size limit is removed. + |
| 1240 | If not set, this setting is not updated. |
| 1241 | |`submit_type` |optional| |
| 1242 | The default submit type of the project, can be `MERGE_IF_NECESSARY`, |
| 1243 | `FAST_FORWARD_ONLY`, `REBASE_IF_NECESSARY`, `MERGE_ALWAYS` or |
| 1244 | `CHERRY_PICK`. + |
| 1245 | If not set, the submit type is not updated. |
| 1246 | |`state` |optional| |
| 1247 | The state of the project, can be `ACTIVE`, `READ_ONLY` or `HIDDEN`. + |
| 1248 | Not set if the project state is `ACTIVE`. + |
| 1249 | If not set, the project state is not updated. |
| 1250 | |========================================= |
| 1251 | |
| Edwin Kempin | 5536762 | 2013-02-05 09:09:23 +0100 | [diff] [blame] | 1252 | [[dashboard-info]] |
| 1253 | DashboardInfo |
| 1254 | ~~~~~~~~~~~~~ |
| 1255 | The `DashboardInfo` entity contains information about a project |
| 1256 | dashboard. |
| 1257 | |
| 1258 | [options="header",width="50%",cols="1,^2,4"] |
| 1259 | |=============================== |
| 1260 | |Field Name ||Description |
| 1261 | |`kind` ||`gerritcodereview#dashboard` |
| 1262 | |`id` || |
| 1263 | The ID of the dashboard. The ID has the format '<ref>:<path>', |
| 1264 | where ref and path are URL encoded. |
| 1265 | |`project` || |
| 1266 | The name of the project for which this dashboard is returned. |
| 1267 | |`defining_project`|| |
| 1268 | The name of the project in which this dashboard is defined. |
| 1269 | This is different from `project` if the dashboard is inherited from a |
| 1270 | parent project. |
| 1271 | |`ref` || |
| 1272 | The name of the ref in which the dashboard is defined, without the |
| 1273 | `refs/meta/dashboards/` prefix, which is common for all dashboard refs. |
| 1274 | |`path` || |
| 1275 | The path of the file in which the dashboard is defined. |
| 1276 | |`description` |optional|The description of the dashboard. |
| 1277 | |`foreach` |optional| |
| 1278 | Subquery that applies to all sections in the dashboard. + |
| 1279 | Tokens such as `${project}` are not resolved. |
| 1280 | |`url` || |
| 1281 | The URL under which the dashboard can be opened in the Gerrit WebUI. + |
| 1282 | The URL is relative to the canonical web URL. + |
| 1283 | Tokens in the queries such as `${project}` are resolved. |
| 1284 | |`default` |not set if `false`| |
| 1285 | Whether this is the default dashboard of the project. |
| 1286 | |`title` |optional|The title of the dashboard. |
| 1287 | |`sections` || |
| 1288 | The list of link:#dashboard-section-info[sections] in the dashboard. |
| 1289 | |=============================== |
| 1290 | |
| Edwin Kempin | 67e923c | 2013-02-14 13:57:12 +0100 | [diff] [blame] | 1291 | [[dashboard-input]] |
| 1292 | DashboardInput |
| 1293 | ~~~~~~~~~~~~~~ |
| 1294 | The `DashboardInput` entity contains information to create/update a |
| 1295 | project dashboard. |
| 1296 | |
| 1297 | [options="header",width="50%",cols="1,^2,4"] |
| 1298 | |============================= |
| 1299 | |Field Name ||Description |
| 1300 | |`id` |optional| |
| Edwin Kempin | c95c508 | 2013-03-12 16:56:25 +0100 | [diff] [blame] | 1301 | URL encoded ID of a dashboard to which this dashboard should link to. |
| Edwin Kempin | 67e923c | 2013-02-14 13:57:12 +0100 | [diff] [blame] | 1302 | |`commit_message`|optional| |
| 1303 | Message that should be used to commit the change of the dashboard. |
| 1304 | |============================= |
| 1305 | |
| Edwin Kempin | 5536762 | 2013-02-05 09:09:23 +0100 | [diff] [blame] | 1306 | [[dashboard-section-info]] |
| 1307 | DashboardSectionInfo |
| 1308 | ~~~~~~~~~~~~~~~~~~~~ |
| 1309 | The `DashboardSectionInfo` entity contains information about a section |
| 1310 | in a dashboard. |
| 1311 | |
| 1312 | [options="header",width="50%",cols="1,6"] |
| 1313 | |=========================== |
| 1314 | |Field Name |Description |
| 1315 | |`name` |The title of the section. |
| 1316 | |`query` |The query of the section. + |
| 1317 | Tokens such as `${project}` are not resolved. |
| 1318 | |=========================== |
| 1319 | |
| Edwin Kempin | 6b81337 | 2013-03-13 17:07:33 +0100 | [diff] [blame] | 1320 | [[head-input]] |
| 1321 | HeadInput |
| 1322 | ~~~~~~~~~ |
| 1323 | The `HeadInput` entity contains information for setting `HEAD` for a |
| 1324 | project. |
| 1325 | |
| 1326 | [options="header",width="50%",cols="1,6"] |
| 1327 | |============================ |
| 1328 | |Field Name |Description |
| 1329 | |`ref` | |
| 1330 | The ref to which `HEAD` should be set, the `refs/heads` prefix can be |
| 1331 | omitted. |
| 1332 | |============================ |
| 1333 | |
| Edwin Kempin | 0cb5a56 | 2013-07-12 15:41:04 +0200 | [diff] [blame] | 1334 | [[inherited-boolean-info]] |
| 1335 | InheritedBooleanInfo |
| 1336 | ~~~~~~~~~~~~~~~~~~~~ |
| 1337 | A boolean value that can also be inherited. |
| 1338 | |
| 1339 | [options="header",width="50%",cols="1,^2,4"] |
| 1340 | |================================ |
| 1341 | |Field Name ||Description |
| 1342 | |`value` || |
| 1343 | The effective boolean value. |
| 1344 | |`configured_value` || |
| 1345 | The configured value, can be `TRUE`, `FALSE` or `INHERITED`. |
| 1346 | |`inherited_value` |optional| |
| 1347 | The boolean value inherited from the parent. + |
| 1348 | Not set if there is no parent. |
| 1349 | |================================ |
| 1350 | |
| Edwin Kempin | 3c99f59 | 2013-07-15 10:12:27 +0200 | [diff] [blame] | 1351 | [[max-object-size-limit-info]] |
| 1352 | MaxObjectSizeLimitInfo |
| 1353 | ~~~~~~~~~~~~~~~~~~~~~~ |
| 1354 | The `MaxObjectSizeLimitInfo` entity contains information about the |
| 1355 | link:config-gerrit.html#receive.maxObjectSizeLimit[max object size |
| 1356 | limit] of a project. |
| 1357 | |
| 1358 | [options="header",width="50%",cols="1,^2,4"] |
| 1359 | |=============================== |
| 1360 | |Field Name ||Description |
| 1361 | |`value` |optional| |
| 1362 | The effective value of the max object size limit as a formatted string. + |
| 1363 | Not set if there is no limit for the object size. |
| 1364 | |`configured_value`|optional| |
| 1365 | The max object size limit that is configured on the project as a |
| 1366 | formatted string. + |
| 1367 | Not set if there is no limit for the object size configured on project |
| 1368 | level. |
| 1369 | |`inherited_value` |optional| |
| 1370 | The max object size limit that is inherited as a formatted string. + |
| 1371 | Not set if there is no global limit for the object size. |
| 1372 | |=============================== |
| 1373 | |
| Edwin Kempin | 57f303c | 2013-02-13 15:52:22 +0100 | [diff] [blame] | 1374 | [[project-description-input]] |
| 1375 | ProjectDescriptionInput |
| 1376 | ~~~~~~~~~~~~~~~~~~~~~~~ |
| 1377 | The `ProjectDescriptionInput` entity contains information for setting a |
| 1378 | project description. |
| 1379 | |
| 1380 | [options="header",width="50%",cols="1,^2,4"] |
| 1381 | |============================= |
| 1382 | |Field Name ||Description |
| 1383 | |`description` |optional|The project description. + |
| 1384 | The project description will be deleted if not set. |
| 1385 | |`commit_message`|optional| |
| 1386 | Message that should be used to commit the change of the project |
| 1387 | description in the `project.config` file to the `refs/meta/config` |
| 1388 | branch. |
| 1389 | |============================= |
| 1390 | |
| Edwin Kempin | 51a6dc9 | 2013-02-04 15:43:59 +0100 | [diff] [blame] | 1391 | [[project-info]] |
| 1392 | ProjectInfo |
| 1393 | ~~~~~~~~~~~ |
| 1394 | The `ProjectInfo` entity contains information about a project. |
| 1395 | |
| 1396 | [options="header",width="50%",cols="1,^2,4"] |
| 1397 | |=========================== |
| 1398 | |Field Name ||Description |
| 1399 | |`kind` ||`gerritcodereview#project` |
| 1400 | |`id` ||The URL encoded project name. |
| 1401 | |`name` | |
| 1402 | not set if returned in a map where the project name is used as map key| |
| 1403 | The name of the project. |
| Edwin Kempin | f361182 | 2013-03-19 08:23:09 +0100 | [diff] [blame] | 1404 | |`parent` |optional| |
| Edwin Kempin | 51a6dc9 | 2013-02-04 15:43:59 +0100 | [diff] [blame] | 1405 | The name of the parent project. + |
| 1406 | `?-<n>` if the parent project is not visible (`<n>` is a number which |
| 1407 | is increased for each non-visible project). |
| 1408 | |`description` |optional|The description of the project. |
| 1409 | |`branches` |optional|Map of branch names to HEAD revisions. |
| 1410 | |=========================== |
| 1411 | |
| Bruce Zu | 798ea12 | 2013-02-18 16:55:43 +0800 | [diff] [blame] | 1412 | [[project-input]] |
| 1413 | ProjectInput |
| 1414 | ~~~~~~~~~~~~ |
| 1415 | The `ProjectInput` entity contains information for the creation of |
| 1416 | a new project. |
| 1417 | |
| 1418 | [options="header",width="50%",cols="1,^2,4"] |
| 1419 | |========================================= |
| 1420 | |Field Name ||Description |
| 1421 | |`name` |optional| |
| 1422 | The name of the project (not encoded). + |
| 1423 | If set, must match the project name in the URL. |
| 1424 | |`parent` |optional| |
| 1425 | The name of the parent project. + |
| 1426 | If not set, the `All-Projects` project will be the parent project. |
| 1427 | |`description` |optional|The description of the project. |
| 1428 | |`permissions_only` |`false` if not set| |
| 1429 | Whether a permission-only project should be created. |
| 1430 | |`create_empty_commit` |`false` if not set| |
| 1431 | Whether an empty initial commit should be created. |
| 1432 | |`submit_type` |optional| |
| 1433 | The submit type that should be set for the project |
| 1434 | (`MERGE_IF_NECESSARY`, `REBASE_IF_NECESSARY`, `FAST_FORWARD_ONLY`, |
| 1435 | `MERGE_ALWAYS`, `CHERRY_PICK`). + |
| 1436 | If not set, `MERGE_IF_NECESSARY` is set as submit type. |
| 1437 | |`branches` |optional| |
| 1438 | A list of branches that should be initially created. + |
| 1439 | For the branch names the `refs/heads/` prefix can be omitted. |
| 1440 | |`owners` |optional| |
| 1441 | A list of groups that should be assigned as project owner. + |
| 1442 | Each group in the list must be specified as |
| 1443 | link:rest-api-groups.html#group-id[group-id]. + |
| 1444 | If not set, the link:config-gerrit.html#repository.name.ownerGroup[ |
| 1445 | groups that are configured as default owners] are set as project |
| 1446 | owners. |
| 1447 | |`use_contributor_agreements`|`INHERIT` if not set| |
| 1448 | Whether contributor agreements should be used for the project (`TRUE`, |
| 1449 | `FALSE`, `INHERIT`). |
| 1450 | |`use_signed_off_by` |`INHERIT` if not set| |
| 1451 | Whether the usage of 'Signed-Off-By' footers is required for the |
| 1452 | project (`TRUE`, `FALSE`, `INHERIT`). |
| 1453 | |`use_content_merge` |`INHERIT` if not set| |
| 1454 | Whether content merge should be enabled for the project (`TRUE`, |
| 1455 | `FALSE`, `INHERIT`). + |
| 1456 | `FALSE`, if the `submit_type` is `FAST_FORWARD_ONLY`. |
| 1457 | |`require_change_id` |`INHERIT` if not set| |
| 1458 | Whether the usage of Change-Ids is required for the project (`TRUE`, |
| 1459 | `FALSE`, `INHERIT`). |
| Sasa Zivkov | 6b40cb4 | 2013-07-01 15:28:22 +0200 | [diff] [blame] | 1460 | |`max_object_size_limit` |optional| |
| 1461 | Max allowed Git object size for this project. |
| 1462 | Common unit suffixes of 'k', 'm', or 'g' are supported. |
| Bruce Zu | 798ea12 | 2013-02-18 16:55:43 +0800 | [diff] [blame] | 1463 | |========================================= |
| 1464 | |
| Edwin Kempin | ecad88c | 2013-02-14 12:09:44 +0100 | [diff] [blame] | 1465 | [[project-parent-input]] |
| 1466 | ProjectParentInput |
| 1467 | ~~~~~~~~~~~~~~~~~~ |
| 1468 | The `ProjectParentInput` entity contains information for setting a |
| 1469 | project parent. |
| 1470 | |
| 1471 | [options="header",width="50%",cols="1,^2,4"] |
| 1472 | |============================= |
| 1473 | |Field Name ||Description |
| 1474 | |`parent` ||The name of the parent project. |
| 1475 | |`commit_message`|optional| |
| 1476 | Message that should be used to commit the change of the project parent |
| 1477 | in the `project.config` file to the `refs/meta/config` branch. |
| 1478 | |============================= |
| 1479 | |
| Edwin Kempin | 19ea9b9 | 2013-03-20 13:20:26 +0100 | [diff] [blame] | 1480 | [[repository-statistics-info]] |
| 1481 | RepositoryStatisticsInfo |
| 1482 | ~~~~~~~~~~~~~~~~~~~~~~~~ |
| 1483 | The `RepositoryStatisticsInfo` entity contains information about |
| 1484 | statistics of a Git repository. |
| 1485 | |
| 1486 | [options="header",width="50%",cols="1,6"] |
| 1487 | |====================================== |
| 1488 | |Field Name |Description |
| 1489 | |`number_of_loose_objects` |Number of loose objects. |
| 1490 | |`number_of_loose_refs` |Number of loose refs. |
| 1491 | |`number_of_pack_files` |Number of pack files. |
| 1492 | |`number_of_packed_objects`|Number of packed objects. |
| 1493 | |`number_of_packed_refs` |Number of packed refs. |
| 1494 | |`size_of_loose_objects` |Size of loose objects in bytes. |
| 1495 | |`size_of_packed_objects` |Size of packed objects in bytes. |
| 1496 | |====================================== |
| 1497 | |
| Edwin Kempin | 272402e | 2013-07-15 11:17:36 +0200 | [diff] [blame] | 1498 | [[theme-info]] |
| 1499 | ThemeInfo |
| 1500 | ~~~~~~~~~ |
| 1501 | The `ThemeInfo` entity describes a theme. |
| 1502 | |
| 1503 | [options="header",width="50%",cols="1,^2,4"] |
| 1504 | |============================= |
| 1505 | |Field Name ||Description |
| 1506 | |`css` |optional| |
| 1507 | The path to the `GerritSite.css` file. |
| 1508 | |`header` |optional| |
| 1509 | The path to the `GerritSiteHeader.html` file. |
| 1510 | |`footer` |optional| |
| 1511 | The path to the `GerritSiteFooter.html` file. |
| 1512 | |============================= |
| 1513 | |
| Edwin Kempin | d0a6392 | 2013-01-23 16:32:59 +0100 | [diff] [blame] | 1514 | |
| 1515 | GERRIT |
| 1516 | ------ |
| 1517 | Part of link:index.html[Gerrit Code Review] |
| Yuxuan 'fishy' Wang | 99cb68d | 2013-10-31 17:26:00 -0700 | [diff] [blame] | 1518 | |
| 1519 | SEARCHBOX |
| 1520 | --------- |